package com.tao.flower.controller;

import com.alibaba.druid.pool.DruidDataSource;
import com.tao.flower.pojo.User;
import com.tao.flower.service.IndexService;
import com.tao.flower.util.Result;
import org.apache.logging.log4j.util.PerformanceSensitive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class IndexController {
    @Autowired
    IndexService indexService;

    @GetMapping("/mall-api/index/findBannerImg")
        public Result findBanner(){

        List<String> list = new ArrayList();
        list.add("http://localhost:8080/bennerImg/banner-1.png");
        list.add("http://localhost:8080/bennerImg/banner-2.png");
        list.add("http://localhost:8080/bennerImg/banner-3.png");


        return Result.success(list);
    }

}
